Introduce 'bootscrub' boolean cmdline option. Default on.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 9 Jul 2007 13:30:46 +0000 (14:30 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 9 Jul 2007 13:30:46 +0000 (14:30 +0100)
no-bootscrub will disable boot-time RAM scrubbing, speeding up boot
time significantly on big-memory systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/page_alloc.c

index 5fe3742c5ed816045df9555c1754d6e647a145af..e2b64dccab164f897aae66e3f2b45de9af1b6a5c 100644 (file)
 static char opt_badpage[100] = "";
 string_param("badpage", opt_badpage);
 
+/*
+ * no-bootscrub -> Free pages are not zeroed during boot.
+ */
+static int opt_bootscrub __initdata = 1;
+boolean_param("bootscrub", opt_bootscrub);
+
 /*
  * Bit width of the DMA heap.
  */
@@ -624,6 +630,9 @@ void __init scrub_heap_pages(void)
     void *p;
     unsigned long mfn;
 
+    if ( !opt_bootscrub )
+        return;
+
     printk("Scrubbing Free RAM: ");
 
     for ( mfn = first_valid_mfn; mfn < max_page; mfn++ )